Fixes Gargoyle thermal vision (Visceratika 2+), refactors sight trait updates #646
+45
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About The Pull Request
Ties
update_sight()
to the gaining/removal of sight-altering traits, rather than individual use-cases callingupdate_sight()
whenever they assign or remove these traits (thermal, night vision, x-ray).This fixes the gargoyle thermal vision from Visceratika 2+, it did not work unless something else called
update_sight()
on them.Sadly, the signal for adding or removing traits don't handle sources, so I couldn't group these and turn it into a switch case.
Testing:
Activated Visceratika 2, noticed mobs immediately showing up. Waited. Mobs disappeared from sight when it was removed.
![image](https://private-user-images.githubusercontent.com/33333517/407745099-6b37a044-7d87-46fb-82ce-8f162d56667b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzQ3MzMsIm5iZiI6MTczOTY3NDQzMywicGF0aCI6Ii8zMzMzMzUxNy80MDc3NDUwOTktNmIzN2EwNDQtN2Q4Ny00NmZiLTgyY2UtOGYxNjJkNTY2NjdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAyNTM1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThjNTI2MTM1NmE3OGM3MmFmNThhMGMyZWJkMWU1NTE2Y2VmODlhYTFmYmM3ZGI2YzNjMjI1ZDExMzkxYWE4NWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WDeDcmR9DapSOTx8pyIhnSsCE4ocUNL4U8KAuODzltE)
Activated Feng Shui 1, noticed I can see mob. Waited. Mob begone.
![image](https://private-user-images.githubusercontent.com/33333517/407749864-190ef02d-8ac0-45e5-8cfe-af0b2986981f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzQ3MzMsIm5iZiI6MTczOTY3NDQzMywicGF0aCI6Ii8zMzMzMzUxNy80MDc3NDk4NjQtMTkwZWYwMmQtOGFjMC00NWU1LThjZmUtYWYwYjI5ODY5ODFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAyNTM1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2NzM1ZDg5ZmMzMDlhNTUwYjdiNzAxMjQ0YzFjNGU5MzNkNmZmM2U1YjhmZWIyYzMxNzc1YjE2N2UxNDE2ZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KRGLSvxjQzkcJfz3UuLi9QOoIeGiWItLDAh34YU49-0)
Activated Auspex 5, re-entered body, saw blue tint + auras for a little more, then they went away.
![image](https://private-user-images.githubusercontent.com/33333517/407751779-fdfd00c7-9362-4605-8239-32bddc0d9de2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzQ3MzMsIm5iZiI6MTczOTY3NDQzMywicGF0aCI6Ii8zMzMzMzUxNy80MDc3NTE3NzktZmRmZDAwYzctOTM2Mi00NjA1LTgyMzktMzJiZGRjMGQ5ZGUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAyNTM1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwMzFhOWQ0Mzc3OGQ4MGE0YWUyZGI1NThmYmE1ODQ5N2RhMDAyY2YyOWYxOTY0NTg0NzZiY2Q1NjRiM2I2MTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WrsN8bqrnLGYaxgcg8jnLMIweaPpdFIyoo6kW9wvoDY)
Why It's Good For The Game
Bugs bad, fixes this report on Discord:
Changelog
fix: Fixes the thermal vision gained from Visceratika 2 and above to immediately work, now it turns on and off as it should.